package com.synjones.ui.lunch;

import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.synjones.idcardusb_reader.R;
import com.synjones.ui.FirstScreenRouter;
import com.synjones.ui.SecondScreenRouter;

public class LunchSecondScreen extends FrameLayout implements View.OnClickListener {

    private FirstScreenRouter router1;
    private SecondScreenRouter router2;

    public LunchSecondScreen(@NonNull Context context,FirstScreenRouter router1,SecondScreenRouter router2) {
        super(context);
        this.router1 = router1;
        this.router2 = router2;
        View layout = LayoutInflater.from(getContext()).inflate(R.layout.second_lunch, null);
//        layout.findViewById(R.id.scLunchOtherSign).setOnClickListener(this);
//        layout.findViewById(R.id.scLunchSelfSign).setOnClickListener(this);
        FrameLayout.LayoutParams fl =
                new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
        addView(layout,fl);
    }


    @Override
    public void onClick(View view) {
//        switch (view.getId()){
//            case R.id.scLunchSelfSign:
//                router1.gotoRecognize(true);
//                router2.gotoRecognize(true);
//                break;
//            case R.id.scLunchOtherSign:
//                router1.gotoRecognize(false);
//                router2.gotoRecognize(false);
//                break;
//        }
    }
}
